package org.fing.edu.uy.esbadp.core.entity;

import java.io.Serializable;
import java.util.List;

import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;

import org.fing.edu.uy.esbadp.core.constants.EsbAdpPropertyConstants;



@XmlRootElement(name = EsbAdpPropertyConstants.PROPERTIES_ROOT_ELEMENT)
@XmlSeeAlso({DMAdpMonitorProperty.class})
public class DMAdpMonitorProperties implements Serializable{
	
	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 716820365094052307L;
	List<DMAdpMonitorProperty> properties;
	
	
	public DMAdpMonitorProperties(){
		
	}
	
	
	@XmlElementRef
	public List<DMAdpMonitorProperty> getProperties() {
		return properties;
	}


	public void setProperties(List<DMAdpMonitorProperty> properties) {
		this.properties = properties;
	}

	
	public String toString(){
		StringBuilder sb = new StringBuilder();
		sb.append("Monitor Properties registered ->\n");
		for(DMAdpMonitorProperty aux : properties){
			sb.append(aux.toString());
			sb.append("\n");
		}
		return sb.toString();
	}

}
